package com.stylefeng.guns.modular.pay.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 通联银行代码
 * </p>
 *
 * @author stylefeng
 * @since 2018-09-26
 */
@TableName("pay_allin_bank_code")
public class PayAllinBankCode extends Model<PayAllinBankCode> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 银行代码
     */
    @TableField("bank_code")
    private String bankCode;
    /**
     * 银行名称
     */
    @TableField("bank_name")
    private String bankName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PayAllinBankCode{" +
        "id=" + id +
        ", bankCode=" + bankCode +
        ", bankName=" + bankName +
        "}";
    }
}
